﻿@{
    ViewBag.Title = "PlaySound";
    Layout = "~/Views/Shared/_EaselPage.cshtml";
}

<h2>Play Sound</h2>

<script type="text/javascript">
    function init() {
        createjs.Sound.registerSound("/Music/game.mp3", "game", 5);
        var game = createjs.Sound.play("game");
    }

    window.onload = function () {
        init();
    }
</script>
